//
//  MoreUserInfoCell.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/13.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "MoreUserInfoCell.h"

@implementation MoreUserInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _userName.textColor = DEFAULTCOLOR;
    _userTel.textColor = DEFAULTCOLOR;
    _userTel.text = @"";
    _userName.text = @"";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    MoreUserInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:MOREUSER_CELL];
    if (!cell) {
        cell = [[MoreUserInfoCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MOREUSER_CELL];
    }
    if (userValue(ISLOGIN) && [userValue(ISLOGIN) boolValue] == YES) {
        cell.userName.hidden = NO;
        cell.userTel.hidden = NO;
        cell.loginLab.hidden = YES;
    } else {
        cell.userName.hidden = YES;
        cell.userTel.hidden = YES;
        cell.loginLab.hidden = NO;
    }
    return cell;
}

@end
